#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <assert.h>
const char* my_strstr(const char* str1, const char* str2) {
	const char* s1 = NULL;
	const char* s2 = NULL;
	const char* cur = NULL;
	cur = str1;
	while (*cur != '\0') {
		s1 = cur;
		s2 = str2;
		assert(s1 != NULL && s2 != NULL);
		while (*s1 == *s2) {
			s1++;
			s2++;
		}
		if (*s2 == '\0') {
			return cur;
		}
		cur++;
	}
	return NULL;

}
int main() {
	char a[] = "abbbcef";
	char b[] = "bbc";
	const char* ret = my_strstr(a, b);
	printf("%s\n", ret);
	return 0;
}